package com.openbravo.pos.inventory.model;

import com.openbravo.bean.ProductCode;
import com.openbravo.pos.base.AppLocal;

import cn.ekuma.data.ui.swing.AbstractDTOTableModel;

@SuppressWarnings("serial")
public class ProductCodeTableModel extends AbstractDTOTableModel<ProductCode> {

	@Override
	public Object getValueAt(int rowIndex, int columnIndex) {
		switch(columnIndex){
		case 0:
			return getObj(rowIndex).getCode();
		}
		return null;
	}

	@Override
	public String[] getColumnNames() {
		return new String[] {AppLocal.getIntString("label.prodbarcode")};
	}

}
